Platform Explorer / Nuxeo Platform 6.0

Contribution org.nuxeo.ecm.core.automation.featuresContrib--chains

This contribution is part of XML component org.nuxeo.ecm.core.automation.featuresContrib inside nuxeo-automation-features-6.0.jar

Extension Point

Extension point chains of component OperationServiceComponent.

Contributed Items

  • <chain id="VersionAndAttachFile">
          <operation id="Blob.PushList">
          </operation>
          <operation id="Document.Fetch">
            <param name="value" type="string">expr:Context.get("currentDocument")</param>
          </operation>
          <operation id="Document.CheckIn">
            <param name="version" type="string">minor</param>
            <param name="comment" type="string">Automatic checkin before file update</param>
          </operation>
          <operation id="Context.SetInputAsVar">
            <param name="name" type="string">newDocument</param>
          </operation>
          <operation id="Context.SetVar">
            <param name="name" type="string">currentDocument</param>
            <param name="value" type="string">expr:Context.get("newDocument").id</param>
          </operation>
          <operation id="Blob.PopList">
          </operation>
          <operation id="BlobHolder.Attach">
            <param name="useMainBlob" type="boolean">true</param>
          </operation>
        </chain>
  • <chain id="AttachFiles">
          <operation id="BlobHolder.Attach">
            <param name="useMainBlob" type="boolean">false</param>
          </operation>
        </chain>
  • <chain id="VersionAndAttachFiles">
          <operation id="Blob.PushList">
          </operation>
          <operation id="Document.Fetch">
            <param name="value" type="string">expr:Context.get("currentDocument")</param>
          </operation>
          <operation id="Document.CheckIn">
            <param name="version" type="string">minor</param>
            <param name="comment" type="string">Automatic checkin before files update</param>
          </operation>
          <operation id="Context.SetInputAsVar">
            <param name="name" type="string">newDocument</param>
          </operation>
          <operation id="Context.SetVar">
            <param name="name" type="string">currentDocument</param>
            <param name="value" type="string">expr:Context.get("newDocument").id</param>
          </operation>
          <operation id="Blob.PopList">
          </operation>
          <operation id="BlobHolder.Attach">
            <param name="useMainBlob" type="boolean">false</param>
          </operation>
        </chain>
  • <chain id="FileManager.ImportWithMetaData">
          <operation id="FileManager.Import">
             <param name="overwite" type="boolean">true</param>
          </operation>
          <operation id="Document.Update">
            <param name="properties" type="properties">expr:Context.get("docMetaData")</param>
          </operation>
        </chain>

XML Source

<extension point="chains" target="org.nuxeo.ecm.core.operation.OperationServiceComponent">
    <chain id="VersionAndAttachFile">
      <operation id="Blob.PushList">
      </operation>
      <operation id="Document.Fetch">
        <param name="value" type="string">expr:Context.get("currentDocument")</param>
      </operation>
      <operation id="Document.CheckIn">
        <param name="version" type="string">minor</param>
        <param name="comment" type="string">Automatic checkin before file update</param>
      </operation>
      <operation id="Context.SetInputAsVar">
        <param name="name" type="string">newDocument</param>
      </operation>
      <operation id="Context.SetVar">
        <param name="name" type="string">currentDocument</param>
        <param name="value" type="string">expr:Context.get("newDocument").id</param>
      </operation>
      <operation id="Blob.PopList">
      </operation>
      <operation id="BlobHolder.Attach">
        <param name="useMainBlob" type="boolean">true</param>
      </operation>
    </chain>
    <chain id="AttachFiles">
      <operation id="BlobHolder.Attach">
        <param name="useMainBlob" type="boolean">false</param>
      </operation>
    </chain>
    <chain id="VersionAndAttachFiles">
      <operation id="Blob.PushList">
      </operation>
      <operation id="Document.Fetch">
        <param name="value" type="string">expr:Context.get("currentDocument")</param>
      </operation>
      <operation id="Document.CheckIn">
        <param name="version" type="string">minor</param>
        <param name="comment" type="string">Automatic checkin before files update</param>
      </operation>
      <operation id="Context.SetInputAsVar">
        <param name="name" type="string">newDocument</param>
      </operation>
      <operation id="Context.SetVar">
        <param name="name" type="string">currentDocument</param>
        <param name="value" type="string">expr:Context.get("newDocument").id</param>
      </operation>
      <operation id="Blob.PopList">
      </operation>
      <operation id="BlobHolder.Attach">
        <param name="useMainBlob" type="boolean">false</param>
      </operation>
    </chain>
    <chain id="FileManager.ImportWithMetaData">
      <operation id="FileManager.Import">
         <param name="overwite" type="boolean">true</param>
      </operation>
      <operation id="Document.Update">
        <param name="properties" type="properties">expr:Context.get("docMetaData")</param>
      </operation>
    </chain>
  </extension>